# -*- coding:utf-8 -*-

import psutil

# 启动平台
if __name__ == '__main__':
    # 防止重复启动
    pids = psutil.pids()
    for pid in pids:
        p = psutil.Process(pid)
        cmdList = p.cmdline()
        if len(cmdList) > 0 and "python" in cmdList[0]:
            print(cmdList)
